<template>
  <div>
    我是新闻页
    
    <!-- {{ $store.state.num }} 
    {{ $store.getters.num2 }} -->
    {{ num }}
    {{ num2 }}
  </div>
</template>

<script>
import { mapState,mapGetters } from 'vuex'
export default {
 computed: {
   ...mapState(['num']),
   ...mapGetters(['num2'])
 },
}
</script>

<style lang="scss" scoped>

</style>
